// 创建路由器
import VueRouter from "vue-router";

import About from "../components/About";
import Home from "../components/Home";

export default new VueRouter({
  // 注意此处是routes,不是routers
  routes: [
    {
      path: "/about",
      component: About,
    },
    {
      path: "/home",
      component: Home,
    },
  ],
});
